{% extends "afcp/amusement/amusement.html" %}
{% comment %}
<!--
  Copyright (C) 2008 ZHENG Zhong <heavyzheng nospam-at gmail D0T com>
  - http://heavyz.blogspot.com/
  - http://buggarden.blogspot.com/

  Created on 2008-11-18.
  $Id: planet.html 26 2009-08-04 22:06:00Z guolin.mobi $
-->
{% endcomment %}

{#------------------------------------------------------------------------------------------------#}

{% block html_head %}

<link rel="stylesheet" type="text/css" media="screen" href="{{ static_ }}/stylesheets/planet.css"/>

<title>Planet AFCP</title>

{% include "utils/google_ajax_feed_api.html" %}
{% include "utils/feeds_aggregator.html" %}

<script type="text/javascript">//<![CDATA[

function initialize() {
    var aggregator = new FeedsAggregator();
    {% for feed in feeds %}
        aggregator.addFeed("{{ feed.feed_link }}");
    {% endfor %}
	aggregator.showEntries = 20;
    aggregator.feedsNodeId = "feeds";
    aggregator.loadAndRender();
}

$(document).ready( function() { initialize(); } );

function markCurrentEntry() {
    $("#entry_{{ page_name }}").addClass("current");
}

$(document).ready( function() { markCurrentEntry(); } );



//]]></script>



{% endblock %}{# html_head #}

{#------------------------------------------------------------------------------------------------#}

{% block header %}
{% endblock %}{# header #}

{#------------------------------------------------------------------------------------------------#}

{% block content %}

<div id="planet-header">
  <p>
	  <b>Photos AFCP</b>是一个照片 RSS 聚集器。这里收集了一些朋友的相册。若是你拥有 flickr，picasa，msn空间 等在线相册，想和更多的朋友共享你的在线照片，你可以加入到 <b>Photos AFCP</b>，请联系网站的管理员。
  </p>


</div><!--/#planet-header-->

<div id="planet-content" class="container">

  <div id="left-column">
  
    <div id="planet-feeds" class="section">
      <h2>最新照片</h2>
      <div id="feeds"></div>
    </div><!--/#planet-feeds-->
  
  </div><!--/#left-column-->
  
  <div id="right-column">
  
    <div id="planet-members" class="section">
      <h2>Phots 成员</h2>
      {% for feed in feeds %}
        <div class="entry">
          <div class="entry-title">
            <a href="{{ feed.site_link }}" rel="external">{{ feed.site_name|escape }}</a>
          </div>
          <div class="entry-info">
            From {{ feed.author }}.
          </div>
        </div><!--/.entry-->
      {% endfor %}
    </div><!--/#planet-members-->
  
  </div><!--/#right-column-->

</div><!--/#planet-content-->

{% endblock %}{# sidebar_and_content #}




